package com.sinosoft.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author loujiang
 * @date 2020/12/20 8:57 下午
 * @NOTE:
 */
@RequestMapping("/test")
@RestController
@RefreshScope
public class TestControllerV2 {

    @Value("${conf.name}")
    private String confname;
    @RequestMapping("/test_config")
    public String testConfiguration()
    {
        return this.confname;
    }
}
